package com.example.demo.service.impl;

import com.example.demo.entity.User;
import com.example.demo.mapper.UserMapper;
import com.example.demo.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author Mr.Yang
 * @since 2024-05-31
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findNicknameByUserId(Integer userId) {
        return userMapper.findNicknameByUserId(userId);
    }

    @Override
    public List<User> queryList(Map<String, Object> map) {
        return userMapper.queryList(map);
    }

    @Override
    public User queryObject(Long userId) {
        return null;
    }
}
